package com.zg.indiv.domain.req.space;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
* @author lixin
*/
@Data
public class IndivSpacePageReq {
    /**
    * 页数
    */
    @ApiModelProperty(value = "页数", required = true)
    @NotNull(message = "【页数】字段不能为NULL")
    @Min(value = 1, message = "请选择正确页数")
    private long page = 1;

    /**
     * 行数
     */
    @ApiModelProperty(value = "行数", required = true)
    @NotNull(message = "【行数】字段不能为NULL")
    @Min(value = 1, message = "请选择正确行数")
    private long pageSize = 10;

    /**
     * 关键字
     */
    @ApiModelProperty("关键字")
    private String searchStr;
}
